package com.ybkj.daijia.server.errand;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 跑腿订单类型
 *
 * @author Administrator
 */
public class OrderType implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    private Date created;
    private Date updated;
    private Long areaId;//收费标准id
    private String areaName;//收费标准名称
    private String typeName;//类型名称:代买,排队...
    private int typeSeq;//显示顺序
    private Boolean endAddress;//是否有结束地址
    private Boolean errandValuationMethod;//计价方式:false:使用预算费用           true:使用计价器费用
    private String startHint;//起始地址提示
    private String endHint;//目的地址提示
    private Long companyId;//公司地址
    private String companyName;//公司名称
    private String appKey;//区分系统
    private List<ErrandOrderTypeDetailed> errandOrderTypeDetaileds; //跑腿字段
    private String typepicture;//类型图标
    private String allowTips;//允许热门标签多选
    private List<ErrandOrderTypeOtherServices> otherServices;//附加服务
    private List<ErrandOrderTypeTips> tips;//热门标签
    //跑腿二期添加字段
    private Long areaWeightId;//重量收费id
    private String areaWeightName;//重量收费名称
    private String ifPrepay;//是否开启预支付

    public Long getAreaWeightId() {
        return areaWeightId;
    }

    public void setAreaWeightId(Long areaWeightId) {
        this.areaWeightId = areaWeightId;
    }

    public String getAreaWeightName() {
        return areaWeightName;
    }

    public void setAreaWeightName(String areaWeightName) {
        this.areaWeightName = areaWeightName;
    }

    public String getIfPrepay() {
        return ifPrepay;
    }

    public void setIfPrepay(String ifPrepay) {
        this.ifPrepay = ifPrepay;
    }

    public String getTypepicture() {
        return typepicture;
    }

    public void setTypepicture(String typepicture) {
        this.typepicture = typepicture;
    }

    public int getTypeSeq() {
        return typeSeq;
    }

    public void setTypeSeq(int typeSeq) {
        this.typeSeq = typeSeq;
    }

    public String getAllowTips() {
        return allowTips;
    }

    public void setAllowTips(String allowTips) {
        this.allowTips = allowTips;
    }

    public List<ErrandOrderTypeOtherServices> getOtherServices() {
        return otherServices;
    }

    public void setOtherServices(List<ErrandOrderTypeOtherServices> otherServices) {
        this.otherServices = otherServices;
    }

    public List<ErrandOrderTypeTips> getTips() {
        return tips;
    }

    public void setTips(List<ErrandOrderTypeTips> tips) {
        this.tips = tips;
    }

    public List<ErrandOrderTypeDetailed> getErrandOrderTypeDetaileds() {
        return errandOrderTypeDetaileds;
    }

    public void setErrandOrderTypeDetaileds(
        List<ErrandOrderTypeDetailed> errandOrderTypeDetaileds) {
        this.errandOrderTypeDetaileds = errandOrderTypeDetaileds;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName == null ? null : typeName.trim();
    }

    public Boolean getEndAddress() {
        return endAddress;
    }

    public void setEndAddress(Boolean endAddress) {
        this.endAddress = endAddress;
    }

    public Boolean getErrandValuationMethod() {
        return errandValuationMethod;
    }

    public void setErrandValuationMethod(Boolean errandValuationMethod) {
        this.errandValuationMethod = errandValuationMethod;
    }

    public String getStartHint() {
        return startHint != null ? startHint : "";
    }

    public void setStartHint(String startHint) {
        this.startHint = startHint == null ? null : startHint.trim();
    }

    public String getEndHint() {
        return endHint != null ? endHint : "";
    }

    public void setEndHint(String endHint) {
        this.endHint = endHint == null ? null : endHint.trim();
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", created=").append(created);
        sb.append(", updated=").append(updated);
        sb.append(", areaId=").append(areaId);
        sb.append(", typeName=").append(typeName);
        sb.append(", endAddress=").append(endAddress);
        sb.append(", startHint=").append(startHint);
        sb.append(", endHint=").append(endHint);
        sb.append(", companyId=").append(companyId);
        sb.append(", companyName=").append(companyName);
        sb.append(", appKey=").append(appKey);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}